﻿namespace Jim.OA.Service;

/// <summary>
/// OA职员视图
/// </summary>
[Tenant("OA")]
[SugarTable("fpview_user", "OA职员视图")]
public class OAEmpView : OAEntityBase
{
    /// <summary>
    /// 姓名
    /// </summary>
    [SugarColumn(ColumnName = "lastname", ColumnDescription = "姓名")]
    public string? Name { get; set; }
    /// <summary>
    /// 手机
    /// </summary>
    [SugarColumn(ColumnName = "mobile", ColumnDescription = "手机")]
    public string? Mobile { get; set; }
    /// <summary>
    /// 工号
    /// </summary>
    [SugarColumn(ColumnName = "workcode", ColumnDescription = "工号")]
    public string? WorkCode { get; set; }
    /// <summary>
    /// 登录账号同工号
    /// </summary>
    [SugarColumn(ColumnName = "loginid", ColumnDescription = "登录账号同工号")]
    public string? LoginId { get; set; }
    /// <summary>
    /// 密码，登记身份证的用身份证后6位@frog，没有身份证的用123456
    /// </summary>
    [SugarColumn(ColumnName = "password", ColumnDescription = "密码，登记身份证的用身份证后6位@frog，没有身份证的用123456")]
    public string? Password { get; set; }
    /// <summary>
    /// 身份证号
    /// </summary>
    [SugarColumn(ColumnName = "certificatenum", ColumnDescription = "身份证号")]
    public string? CertificateNum { get; set; }
    /// <summary>
    /// 性别
    /// </summary>
    [SugarColumn(ColumnName = "sex", ColumnDescription = "性别")]
    public string? Sex { get; set; }
    /// <summary>
    /// 生日
    /// </summary>
    [SugarColumn(ColumnName = "birthday", ColumnDescription = "生日")]
    public string? Birthday { get; set; }
    /// <summary>
    /// 岗位
    /// </summary>
    [SugarColumn(ColumnName = "jobtitle", ColumnDescription = "岗位")]
    public int? jobtitle { get; set; }
    /// <summary>
    /// 岗位名称
    /// </summary>
    [SugarColumn(ColumnName = "jobtitlename", ColumnDescription = "岗位名称")]
    public string? JobTitleName { get; set; }

    /// <summary>
    /// 安全级别
    /// </summary>
    [SugarColumn(ColumnName = "seclevel", ColumnDescription = "安全级别")]
    public int? seclevel { get; set; }
    /// <summary>
    /// 部门ID
    /// </summary>
    [SugarColumn(ColumnName = "deptid", ColumnDescription = "部门ID")]
    public string? Deptid { get; set; }
    /// <summary>
    /// 部门名称
    /// </summary>
    [SugarColumn(ColumnName = "deptName", ColumnDescription = "部门名称")]
    public string? deptName { get; set; }
    /// <summary>
    /// 直接上级 
    /// </summary>
    [SugarColumn(ColumnName = "managerid", ColumnDescription = "直接上级")]
    public int? ManagerId { get; set; }
    /// <summary>
    /// 直接上级姓名
    /// </summary>
    [SugarColumn(ColumnName = "ManagerName", ColumnDescription = "直接上级姓名")]
    public string? ManagerName { get; set; }
    /// <summary>
    /// 开户行
    /// </summary>
    [SugarColumn(ColumnName = "BankName", ColumnDescription = "开户行")]
    public string? BankName { get; set; }
    /// <summary>
    /// 开户人
    /// </summary>
    [SugarColumn(ColumnName = "AccountName", ColumnDescription = "开户人")]
    public string? AccountName { get; set; }
    /// <summary>
    /// 银行账号
    /// </summary>
    [SugarColumn(ColumnName = "AccountNo", ColumnDescription = "银行账号")]
    public string? AccountNo { get; set; }

    /// <summary>
    /// 状态0：试用<br>1：正式<br>2：临时<br>3：试用延期<br>4：解聘<br>5：离职<br>6：退休<br>7：无效
    /// </summary>
    [SugarColumn(ColumnName = "status", ColumnDescription = "状态0：试用<br>1：正式<br>2：临时<br>3：试用延期<br>4：解聘<br>5：离职<br>6：退休<br>7：无效")]
    public int? status { get; set; }
}
